/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2013
 */

package com.smg.community.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.smg.community.model.*;
import com.smg.community.dao.*;
import com.smg.community.service.*;
import com.smg.community.vo.query.*;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


public class SmgPoiCheckin extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "SmgPoiCheckin";
	public static final String ALIAS_SID = "sid";
	public static final String ALIAS_POI_ID = "poiId";
	public static final String ALIAS_POI_NAME = "poiName";
	public static final String ALIAS_POI_ADDRESS = "poiAddress";
	public static final String ALIAS_CITY_NO = "cityNo";
	public static final String ALIAS_SIGNUP_MEMBER_ID = "signupMemberId";
	public static final String ALIAS_SIGNUP_MEMBER_NAME = "signupMemberName";
	public static final String ALIAS_SIGNUP_MEMBER_HEAD = "signupMemberHead";
	public static final String ALIAS_SIGN_UP_DATE = "signUpDate";
	public static final String ALIAS_GPS_LONGITUDE = "gpsLongitude";
	public static final String ALIAS_GPS_LATITUDE = "gpsLatitude";
	
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * sid       db_column: sid 
     */	
	
	private java.lang.Integer sid;
    /**
     * poiId       db_column: poiId 
     */	
	
	private java.lang.Integer poiId;
    /**
     * poiName       db_column: poiName 
     */	
	private java.lang.String poiName;
    /**
     * poiAddress       db_column: poiAddress 
     */	
	private java.lang.String poiAddress;
    /**
     * cityNo       db_column: cityNo 
     */	
	
	private java.lang.Integer cityNo;
    /**
     * signupMemberId       db_column: signupMemberId 
     */	
	
	private java.lang.Integer signupMemberId;
    /**
     * signupMemberName       db_column: signupMemberName 
     */	
	private java.lang.String signupMemberName;
    /**
     * signupMemberHead       db_column: signupMemberHead 
     */	
	private java.lang.String signupMemberHead;
    /**
     * signUpDate       db_column: signUpDate 
     */	
	
	private Date signUpDate;
    /**
     * gpsLongitude       db_column: gpsLongitude 
     */	
	
	private Float gpsLongitude;
    /**
     * gpsLatitude       db_column: gpsLatitude 
     */	
	
	private Float gpsLatitude;
	//columns END

	public SmgPoiCheckin(){
	}

	public SmgPoiCheckin(
		java.lang.Integer sid
	){
		this.sid = sid;
	}

	public void setSid(java.lang.Integer value) {
		this.sid = value;
	}
	
	public java.lang.Integer getSid() {
		return this.sid;
	}
	public void setPoiId(java.lang.Integer value) {
		this.poiId = value;
	}
	
	public java.lang.Integer getPoiId() {
		return this.poiId;
	}
	public void setPoiName(java.lang.String value) {
		this.poiName = value;
	}
	
	public java.lang.String getPoiName() {
		return this.poiName;
	}
	public void setPoiAddress(java.lang.String value) {
		this.poiAddress = value;
	}
	
	public java.lang.String getPoiAddress() {
		return this.poiAddress;
	}
	public void setCityNo(java.lang.Integer value) {
		this.cityNo = value;
	}
	
	public java.lang.Integer getCityNo() {
		return this.cityNo;
	}
	public void setSignupMemberId(java.lang.Integer value) {
		this.signupMemberId = value;
	}
	
	public java.lang.Integer getSignupMemberId() {
		return this.signupMemberId;
	}
	public void setSignupMemberName(java.lang.String value) {
		this.signupMemberName = value;
	}
	
	public java.lang.String getSignupMemberName() {
		return this.signupMemberName;
	}
	public void setSignupMemberHead(java.lang.String value) {
		this.signupMemberHead = value;
	}
	
	public java.lang.String getSignupMemberHead() {
		return this.signupMemberHead;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Sid",getSid())
			.append("PoiId",getPoiId())
			.append("PoiName",getPoiName())
			.append("PoiAddress",getPoiAddress())
			.append("CityNo",getCityNo())
			.append("SignupMemberId",getSignupMemberId())
			.append("SignupMemberName",getSignupMemberName())
			.append("SignupMemberHead",getSignupMemberHead())
			.toString();
	}
	
	public Date getSignUpDate() {
		return signUpDate;
	}

	public void setSignUpDate(Date signUpDate) {
		this.signUpDate = signUpDate;
	}

	public Float getGpsLongitude() {
		return gpsLongitude;
	}

	public void setGpsLongitude(Float gpsLongitude) {
		this.gpsLongitude = gpsLongitude;
	}

	public Float getGpsLatitude() {
		return gpsLatitude;
	}

	public void setGpsLatitude(Float gpsLatitude) {
		this.gpsLatitude = gpsLatitude;
	}

	public int hashCode() {
		return new HashCodeBuilder()
			.append(getSid())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SmgPoiCheckin == false) return false;
		if(this == obj) return true;
		SmgPoiCheckin other = (SmgPoiCheckin)obj;
		return new EqualsBuilder()
			.append(getSid(),other.getSid())
			.isEquals();
	}
}

